<div class="sub-nav">
	<a class="b-btn" target="_self" href="javascript:;"><em>添加分类</em></a>
</div>
<div class="pad-10">
	<div class="table-list">
		<table width="100%">
			<thead>
				<th width="40%">分类名称</th>
				<th width="10%">商品数量</th>
				<th width="10%">数量单位</th>
				<th width="10%">导航栏</th>
				<th width="10%">价格分级</th>
				<th width="10%">排序</th>
				<th width="10%">操作</th>
			</thead>
			<tbody>
				<?php foreach ($this->categoryList as $row) {?>
				<tr>
					<td>
						<?php for ($i = 0; $i < $row['deep']; $i++) {?>
							&nbsp;&nbsp;&nbsp;
						<?php }?>
						
						<?php if (!$row['is_leaf']) {?>
						<img width="9" height="9" src="/images/menu_minus.gif" />
						<?php }else{?>
						<img width="9" height="9" src="/images/menu_arrow.gif">
						<?php }?>
						
						<?php echo $row['name'];?>
					</td>
					<td><?php echo '0';?></td>
					<td><?php echo $row['measure_unit'];?></td>
					<td><?php if ($row['is_nav']) {?>是<?php }else{?>否<?php }?></td>
					<td><?php echo $row['grade'];?></td>
					<td><?php echo $row['sort'];?></td>
					<td><a class="edit-cate" target="_self" href="javascript:;">[修改]</a>|<a target="_self" href="javascript:;">[删除]</a></td>
				</tr>
				<?php }?>	
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript" language="javascript">
	$(document).ready(function() {
		$('.edit-cate').AjaxDialog({
			title:'编辑分类',
			url:'/category/dialog-edit'
		});
	});
</script>